package tc.jv.task5;

import tc.jv.task4.Vector;

public class Vectors extends tc.jv.task4.Vectors
{

	public static Vector generateRandomVector(int size)
	{
		return generateRandomVector(size, 0, 1);
	}
	
	public static Vector generateRandomVector(int size, int min, int max)
	{
		Vector v = tc.jv.task7.Vectors.createInstance(size);//new LinkedListVector(size);
		for (int i = 0; i < size; i++)
			v.set(i, min + Math.random() * (max-min));
		
		return v;
	}
	
}
